
import {memberlist} from "../../requset/api"
export const state ={
    list:[]
}

export const mutations={
    changemember(state,arr){
        state.list=arr
    }
}

export const actions ={
    reqChangeMember(context){
        memberlist().then(res=>{
            let list =res.data.list?res.data.list:[]
            context.commit("changemember",list)
        })
    }
}

export const getters={
        list(state){
            return state.list
        }
}

export default{
    state,
    mutations,
    actions,
    getters,
    namespaced:true
}